<template>
  <add-order-cell has-slot unlined un-hover label="模板">
    <l-radio-group :checked="value" :radios="modules" @change="change" />
  </add-order-cell>
</template>

<script>
import AddOrderCell from '../add-order-cell/add-order-cell'
import { modules } from '../../index'
export default {
  name: 'OrderModuleChoose',
  components: {
    AddOrderCell
  },
  props: {
    value: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      modules
    }
  },
  methods: {
    change(e) {
      this.$emit('input', e.index)
    }
  }
}
</script>

<style scoped lang="scss">
</style>
